from pyecharts import options as opts
from pyecharts.charts import Map,Timeline
from pyecharts.faker import Faker
from random import randint

tl = Timeline()
for i in range(2015,2020):
    c = (
        Map()
        .add("133", [list(z) for z in zip(['合肥市','芜湖市','黄山市'],[randint(1,300) for i in range(3)])], "安徽")
        .set_global_opts(
            title_opts=opts.TitleOpts(title="Map-广东地图"), visualmap_opts=opts.VisualMapOpts()
        ))
    tl.add(c,'{}年'.format(i))

tl.render("map_guangdong.html")
